﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="2016020719_1.aspx.cs" Inherits="web9._2016020719_1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1" 
            onselectedindexchanged="GridView1_RowDateBound">
            <Columns>
                <asp:TemplateField HeaderText="已发布天数">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="新闻编号"></asp:TemplateField>
                <asp:TemplateField HeaderText="新闻标题"></asp:TemplateField>
                <asp:TemplateField HeaderText="发布时间"></asp:TemplateField>
                <asp:TemplateField HeaderText="新闻类别"></asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:System2ConnectionString %>" 
            onselecting="SqlDataSource1_Selecting" 
            SelectCommand="SELECT [id], [title], [caId], [createTime] FROM [news]">
        </asp:SqlDataSource>
    
    </div>
    </form>
</body>
</html>
